﻿#coding=utf-8
import re
def classify_count(arg):
    eng_letters=re.findall(r'[A-z]',arg)
    chn_letters=re.findall(r'[\u4e00-\u9fa5]',arg)
    table=re.findall(r'\s',arg)
    figure=re.findall(r'\d',arg)
    letters_num=len(eng_letters)+len(chn_letters)
    table_num=len(table)
    figure_num=len(figure)
    other_num=len(arg)-letters_num-table_num-figure_num
    print("字符串中字母个数为：{}，空格个数为：{}，数字个数为：{}，其他字符个数为：{}".format(letters_num,table_num,figure_num,other_num))

if __name__ == '__main__':
    classify_count("薇尔莉特Violet@@#￥555")
